/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kotionokyurievna.gmail.com.genproj.view;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import kotionokyurievna.gmail.com.genproj.logic.*;

/**
 *
 * @author Kateryna_Reznik
 */
public class FruitMain {
    public static void main ( String args[] ){        
        
        Collection<Apple> apples = new ArrayList<>();
        apples.add( new Apple (8));
        apples.add( new Apple (12));
        apples.add( new Apple (10));
        apples.add( new RedApple (5));
        apples.add( new RedApple (13));
        apples.add( new Apple (9));
        System.out.println("Apples \n" + apples + "\n");
        
        Collection<Fruit> fruits = new ArrayList<>();
        fruits.add(new Orange());
        fruits.add(new Apple(4));
        fruits.add(new RedApple(2));
        
        System.out.println("Fruits \n" + fruits + "\n");

        FruitOperator fruitOperator = new FruitOperator();
        
        System.out.println("Copy all bigger \n" + fruitOperator.copyAllBigger(apples, new Apple(9)) + "\n");
        fruitOperator.copyAll(apples, fruits);
        System.out.println("Copy all\n" + fruits);
    }
    
}
